.bpmn-custom-properties-content-message-wrapper {
  display: flex;
  align-items: center;

  .ant-checkbox-wrapper {
    margin-right: 14px;
  }

  .bpmn-custom-properties-content-message {
    flex: 1;
    width: calc(100% - 30px);
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    color: var(--inbiz-color-text);
    border-radius: var(--inbiz-border-radius-base);
    min-height: 32px;
    padding: 0 8px;
    transition: .3s;

    &:hover {
      border-color: var(--ant-primary-5);
      border-right-width: 1px;
    }

    &:focus {
      border-color: var(--ant-primary-color-hover);
      box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
      border-right-width: 1px;
      outline: 0;
    }

    .bpmn-custom-properties-content-message-content {
      flex: 1;
      width: calc(100% - 20px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .bpmn-custom-properties-content-message-icon {
      width: 20px;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      &>span {
        cursor: pointer;

        &:hover {
          color: var(--ant-primary-color);
        }
      }
    }
  }
}

.process-designer-custom-tabs-wrapper {
  margin-bottom: 15px;

  &.one {
    .ant-radio-button-wrapper {
      border-radius: 6px !important;
    }
  }

  .ant-radio-button-wrapper {
    &:nth-child(1) {
      border-radius: 6px 0 0 6px;
    }

    &:nth-last-child(1) {
      border-radius: 0 6px 6px 0;
    }
  }
}

.process-designer-expression {
  .process-designer-expression-buttons {
    margin-bottom: 10px;

    .ant-btn:nth-child(1) {
      margin-right: 10px;
    }
  }

  .process-designer-expression-table {
    margin-bottom: 10px;

    .process-designer-condition-setting-modal-table-row {
      >td {
        height: 32px;
        padding: 5px 8px !important;

        .ant-form-item-explain-error {
          white-space: normal
        }
      }

      .editable-cell-value-wrap {
        height: 32px;
        padding: 0 5px;
        overflow: hidden;
        line-height: 32px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border: 1px solid transparent;
        border-radius: 2px;

        &:hover {
          border-color: #eee;
        }
      }
    }

    .ant-form-item-control-input {
      min-height: unset;
    }
  }
}

.process-designer-operation-button-table-wrapper {
  .process-designer-operation-button-table-row {
    >td {
      height: 32px;
      padding: 5px 8px !important;

      .ant-form-item-explain-error {
        white-space: normal
      }
    }

    .editable-cell-value-wrap {
      height: 32px;
      padding: 0 5px;
      overflow: hidden;
      line-height: 32px;
      white-space: nowrap;
      text-overflow: ellipsis;
      border: 1px solid transparent;
      border-radius: 2px;

      &:hover {
        border-color: #eee;
      }
    }
  }

  .ant-form-item-control-input {
    min-height: unset;
  }
}

.process-designer-strategy-wrapper {
  margin-top: 5px;

  .process-designer-strategy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .process-designer-strategy-top-text {
      font-size: 14px;
      color: #aaa;
    }

    .process-designer-strategy-top-btn {
      color: var(--ant-primary-color);
      cursor: pointer;
    }
  }

  .process-designer-strategy-bottom {
    background: rgba(242, 242, 242, 1);
    line-height: 24px;
    padding: 12px 18px;
    margin-top: 10px;
    color: #333;

    &>span {
      color: #999;
    }
  }
}

.process-designer-member-select-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  color: var(--inbiz-color-text);
  border-radius: var(--inbiz-border-radius-base);
  min-height: 32px;
  padding: 0 4px;
  transition: .3s;
  background: white;

  &:hover {
    border-color: var(--ant-primary-5);
    border-right-width: 1px;
  }

  &:focus {
    border-color: var(--ant-primary-color-hover);
    box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
    border-right-width: 1px;
    outline: 0;
  }

  .process-designer-member-select-members {
    flex: 1;
    max-height: 100px;
    overflow-y: auto;

    .process-designer-member-select-members-single {
      display: flex;
      align-items: center;
      height: 100%;

      &:hover {
        .process-designer-member-select-members-single-icon {
          width: 20px;
          height: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #bbb;
          margin-right: 4px;

          &>span {
            cursor: pointer;

            &:hover {
              color: var(--inbiz-color-danger);
            }
          }
        }
      }

      .process-designer-member-select-members-single-content {
        flex: 1;
        display: flex;
        align-items: center;

        &>svg {
          margin: 0 6px;
        }
      }

      .process-designer-member-select-members-single-icon {
        display: none;
      }
    }

    .process-designer-member-select-member {
      display: inline-flex;
      align-items: center;
      box-sizing: border-box;
      max-width: 100%;
      height: 22px;
      margin-right: 4px;
      margin-bottom: 4px;
      padding: 4px 5px 4px 8px;
      overflow: hidden;
      font-size: 12px;
      line-height: 22px;
      background-color: #f8f8f8;
      border: none;
      border-radius: 2px;
      user-select: none;

      >svg {
        width: 16px;
        height: 16px;
      }

      >div {
        &:nth-child(2) {
          color: var(--inbiz-color-heading);
          margin: 0 5px 0 5px;
        }
      }

      .anticon-close-circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        color: #ccc;
        font-size: 14px;
        cursor: pointer;

        &:hover {
          color: #f25b43;
        }
      }
    }
  }

  .process-designer-member-select-icon {
    width: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &>span {
      cursor: pointer;

      &:hover {
        color: var(--ant-primary-color);
      }
    }
  }
}

.process-designer-exchange-variable {
  .process-designer-exchange-variable-buttons {
    margin-bottom: 10px;

    .ant-btn:nth-child(1) {
      margin-right: 10px;
    }
  }

  .process-designer-exchange-variable-table {
    margin-bottom: 10px;

    .process-designer-exchange-variable-table-row {
      >td {
        height: 32px;
        padding: 5px 8px !important;

        .ant-form-item-explain-error {
          white-space: normal
        }
      }

      .editable-cell-value-wrap {
        height: 32px;
        padding: 0 5px;
        overflow: hidden;
        line-height: 32px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border: 1px solid transparent;
        border-radius: 2px;

        &:hover {
          border-color: #eee;
        }
      }
    }

    .ant-form-item-control-input {
      min-height: unset;
    }
  }
}

.process-designer-sub-process-select-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  color: var(--inbiz-color-text);
  border-radius: var(--inbiz-border-radius-base);
  min-height: 32px;
  padding: 0 8px;
  transition: .3s;
  background: white;

  &:hover {
    border-color: var(--ant-primary-5);
    border-right-width: 1px;

    .process-designer-sub-process-select-delete {
      width: 20px;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #bbb;
      margin-right: 6px;

      &>span {
        cursor: pointer;

        &:hover {
          color: var(--inbiz-color-danger);
        }
      }
    }
  }

  &:focus {
    border-color: var(--ant-primary-color-hover);
    box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
    border-right-width: 1px;
    outline: 0;
  }

  .process-designer-sub-process-select-process {
    flex: 1;
    height: 100%;
  }

  .process-designer-sub-process-select-delete {
    display: none;
  }

  .process-designer-sub-process-select-icon {
    width: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &>span {
      cursor: pointer;

      &:hover {
        color: var(--ant-primary-color);
      }
    }
  }
}

.process-designer-message-template-select-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  color: var(--inbiz-color-text);
  border-radius: var(--inbiz-border-radius-base);
  min-height: 32px;
  padding: 0 4px 0 10px;
  transition: .3s;
  background: white;

  &.error {
    border-color: var(--inbiz-color-danger) !important;
  }

  &:hover {
    border-color: var(--ant-primary-5);
    border-right-width: 1px;
  }

  &:focus {
    border-color: var(--ant-primary-color-hover);
    box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
    border-right-width: 1px;
    outline: 0;
  }

  .process-designer-message-template-select-process {
    flex: 1;
    height: 100%;
    width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .process-designer-message-template-select-icon {
    width: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &>span {
      cursor: pointer;

      &:hover {
        color: var(--ant-primary-color);
      }
    }
  }
}

.process-designer-operation-button-table-wrapper {
  .ant-table-wrapper {
    .ant-spin-nested-loading {
      .ant-spin-container {
        .ant-table {
          .ant-table-footer {
            background: white;
            display: flex;
            justify-content: center;
          }
        }
      }
    }
  }
}

.process-designer-field-form-item {
  .ant-row {
    display: block;

    .ant-col {
      max-width: 100%;
    }
  }
}

.process-designer-custom-label-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
  max-width: 100%;

  .process-designer-custom-label-label {
    font-size: 14px;
    color: rgba(0, 0, 0, .85);
  }

  .process-designer-custom-label-description {
    font-size: 12px;
    color: rgb(153, 153, 153);
    margin-top: -3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.process-designer-icon-picker-wrapper {
  .process-designer-icon-picker {
    display: flex;
    align-items: center;

    .process-designer-icon {
      span.ant-tag {
        height: 32px;
        line-height: 32px;
      }

      span.anticon.anticon-close.ant-tag-close-icon {
        font-size: 12px;
      }
    }
  }
}

.process-designer-button {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  height: 32px;

  &>.process-designer-button-text {
    width: 75px;
    margin: 0 10px 0 10px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  &>.anticon {
    margin-left: 10px;

    &:hover {
      &>svg {
        &>path {
          fill: var(--inbiz-color-primary);
        }
      }
    }
  }

  .process-designer-button-custom-delete {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;

    &>.icon {
      &:hover {
        scale: 1.1;

        &>path {
          fill: var(--inbiz-color-primary);
        }
      }
    }
  }
}

.process-designer-button-popover {
  width: 300px;
  padding-top: 10px;

  .ant-popover-content {
    .ant-popover-arrow {
      display: none;
    }

    .ant-popover-inner {
      .ant-popover-inner-content {
        .ant-form {
          .ant-form-item {
            margin-bottom: 10px;
          }
        }

        .process-designer-button-popover-button {
          display: flex;
          justify-content: flex-end;

          &>button:nth-child(2) {
            margin-left: 14px;
          }
        }
      }
    }
  }
}

.process-designer-button-withdraw {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  height: 32px;

  &>.process-designer-button-withdraw-text {
    width: 38px;
    margin: 0 40px 0 10px;
    cursor: pointer;
  }

  &>.anticon {
    margin-left: 10px;
  }
}

.process-designer-button-config {
  background: #eee;
  padding: 10px 20px;
  margin-bottom: 15px;

  .ant-radio-group {
    display: block;
  }

  .process-designer-button-config-urging {
    display: flex;
    align-items: center;

    &>div:nth-child(1) {
      width: 112px;
      margin-right: 20px;
    }

    &>div:nth-child(2) {
      flex: 1;
    }
  }

  .process-designer-button-config-returnsBack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    &:nth-child(1) {
      margin-bottom: 10px;
    }

    .process-designer-button-config-returnsBack-item-left {
      width: 140px;
      display: flex;
      align-items: center;
      margin-right: 8px;

      &>label {
        width: 16px;
      }

      &>span {
        width: 14px;
      }

      .process-designer-button-config-returnsBack-item-text {
        margin: 0 6px;
        max-width: calc(100% - 30px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        cursor: pointer;
      }
    }

    &>.multilingual-input {
      flex: 1;
    }
  }

  .process-designer-button-plusSign-config-form {
    display: flex;
    align-items: center;
    margin-bottom: 8px;

    .process-designer-button-plusSign-config-form-label {
      width: 140px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      &>span {
        margin-left: 6px;
      }
    }

    &>.ant-radio-group {
      flex: 1;

      .ant-radio-wrapper {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
      }
    }
  }

  .process-designer-button-plusSign-config-button {
    .process-designer-button-plusSign-config-button-item {
      display: flex;
      margin-top: 8px;

      .process-designer-button-plusSign-config-button-left {
        width: 140px;
        display: flex;
        align-items: center;

        .process-designer-button-config-button-item-text {
          margin: 0 6px;
          max-width: calc(100% - 16px);
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          cursor: pointer;
        }
      }

      &>.multilingual-input {
        flex: 1;
      }
    }
  }

  .process-designer-button-config-assign {
    display: flex;
    align-items: center;

    .process-designer-button-config-assign-text {
      width: 100px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}